/* pages/paint/paint.wxss */
.paint-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 20rpx;
  > .tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  > .canvas-wrapper {
    height: 50%;
    border: 1px solid #ccc;
    border-radius: 20rpx;
    margin-top: 20rpx;
  }
  >.player-wrapper {
    margin-top: 50rpx;
    > .player-item {
      display: inline-block;
      width: 100rpx;
      height: 100rpx;
      background-color: darksalmon;
      border-radius: 50%;
      position: relative;
      & + .player-item {
        margin-left: 22rpx;
      }
      > image {
        width: 100%;
        height: 100%;
        border-radius: 50%;
      }
      > .badge {
        min-width: 30rpx;
        height: 30rpx;
        border-radius: 30rpx;
        background-color: #f00;
        position: absolute;
        top: 0;
        right: 0;
        font-size: 14rpx;
        font-weight: bold;
        color: #fff;
        line-height: 30rpx;
        text-align: center;
      }
      > .painting {
        width: 60rpx;
        height: 30rpx;
        background-color: cornflowerblue;
        font-size: 14rpx;
        color: #fff;
        line-height: 30rpx;
        text-align: center;
        border-radius: 10rpx;
        position: absolute;
        top: -40rpx;
        left: 50%;
        margin-left: -15px;
        &::after {
          content: "";
          width: 0;
          height: 0;
          border-left: 6rpx solid transparent;
          border-right: 6rpx solid transparent;
          border-top: 8rpx solid cornflowerblue;
          position: absolute;
          bottom: -8rpx;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }
  > .chat {
    flex: 1;
    overflow: hidden;
    margin-top: 20rpx;
  }
}
